package routers

import (
	"github.com/gin-gonic/gin"
	"moko/internal/controller/audio"
)

func SetupAudio(router *gin.Engine) {
	articleGroup := router.Group("/audio")
	{
		// 上传音频
		articleGroup.POST("/audio", audio.HandleAppFileUpload)
		// 上传视频
		articleGroup.POST("/video", audio.HandleAppFileUploadVideo)
		// 长链接
		articleGroup.GET("/ws", audio.WebSocket)
		// 单条推送
		articleGroup.POST("/push/single", audio.PushSingle)
		// 广播推送
		articleGroup.POST("/push/broadcast", audio.PushBroadcast)
	}
}
